package alp.starcode.framework.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单表(order_info)
 * </p>
 *
 * @author yanglin
 * @since 2021-11-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_info")
public class OrderInfo extends Model<OrderInfo> {

    private static final long serialVersionUID=1L;

    /**
     * 订单编号
     */
    @TableId("orderUuid")
    private String orderUuid;

    /**
     * 用户Uuid
     */
    @TableField("userUuid")
    private String userUuid;

    /**
     * 店铺Uuid
     */
    @TableField("storeUuid")
    private String storeUuid;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField("address")
    private String address;

    @TableField("totalPrice")
    private BigDecimal totalPrice;

    @TableField("createTime")
    private Long createTime;
}
